package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface DetectdepartmentService {

	public Detectdepartment saveDetectdepartment(Detectdepartment detectdepartment);

	public Set<Detectdepartment> loadDetectdepartments();

	public Set<Detectdepartment> loadReferenceDetectdepartments(Set<Detectdepartment> detectdepartments);

	public Set<Detectdepartment> loadDetectdepartmentsByIdSet(Set<Integer> detectdepartmentsId);

	public Map<String, ?> loadDetectdepartmentObjectReferencedSet(Detectdepartment detectdepartment);

	public Map<String, ?> loadDetectdepartmentClassReferencedSet(Detectdepartment detectdepartment);

	public void deleteDetectdepartment(Detectdepartment detectdepartment);

	public void deleteDetectdepartments(Set<Integer> deleteDetectdepartmentsId);

	public List<Detectdepartment> findAllDetectdepartments(Integer startResult, Integer maxRows);

	public Detectdepartment findDetectdepartmentByPrimaryKey(Integer id);

	public Integer countDetectdepartments();

	public Integer countDetectdepartments(CmiPagination page);

	public Integer countDetectdepartmentsByName(String queryName);

	public Integer countDetectdepartmentsByDetachedCriteria(CmiPagination page);

}
